#!/usr/bin/python


REMOTE_CONFIG = {
    'mycomputer': {
        'login': {
            'host': '10.1.118.195',
            'user': '******',
            'passwd': '******'
        },
        #make this a location specfication and move actions closer to filters
        #having global scope (action apply to all filters) and granular (apply to individual filters)
        'filestopush': [ 
            {
                'dir': '/export/home/mahdi', #use os path.join
            },
            {
                'filters': { 
                    'filtertype1': ('posarg', '*args', '**kdargs'),
                    'filtertype2': ('posarg', '*args', '**kdargs'),
                    'filtertype3': ('posarg', '*args', '**kdargs'),
                    'filtertype4': ('posarg', '*args', '**kdargs')
                },
                'ext': '',
                'constraints': '',
                'base': 'DEBIT_ORDER',
                'prepend': 'somecallablethatreturnsastringORSTRING',
                'append': 'somecallablethatreturnsastringORSTRING',
            }
        ],
        'filestopull': [
            {
                'dir': '', #empty ftp root dir, otherwise traverse to specified
            },
            {
                'ext': '.txt',
                'base': '123kdd.txt',
                'prepend': '123',
                'append': '',
            }
        ]
    }
}

